/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx_hal.h"
#include <stdio.h>

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define LED_NG_Pin GPIO_PIN_13
#define LED_NG_GPIO_Port GPIOC
#define LED_OK_Pin GPIO_PIN_14
#define LED_OK_GPIO_Port GPIOC
#define LED_BUSY_Pin GPIO_PIN_15
#define LED_BUSY_GPIO_Port GPIOC
#define P7_Pin GPIO_PIN_0
#define P7_GPIO_Port GPIOC
#define P6_Pin GPIO_PIN_1
#define P6_GPIO_Port GPIOC
#define P5_Pin GPIO_PIN_2
#define P5_GPIO_Port GPIOC
#define P4_Pin GPIO_PIN_3
#define P4_GPIO_Port GPIOC
#define P3_Pin GPIO_PIN_4
#define P3_GPIO_Port GPIOC
#define P2_Pin GPIO_PIN_5
#define P2_GPIO_Port GPIOC
#define P50_Pin GPIO_PIN_0
#define P50_GPIO_Port GPIOB
#define P49_Pin GPIO_PIN_1
#define P49_GPIO_Port GPIOB
#define P48_Pin GPIO_PIN_2
#define P48_GPIO_Port GPIOB
#define P17_Pin GPIO_PIN_10
#define P17_GPIO_Port GPIOB
#define P16_Pin GPIO_PIN_11
#define P16_GPIO_Port GPIOB
#define P15_Pin GPIO_PIN_12
#define P15_GPIO_Port GPIOB
#define P13_10_9_Pin GPIO_PIN_13
#define P13_10_9_GPIO_Port GPIOB
#define P12_11_Pin GPIO_PIN_14
#define P12_11_GPIO_Port GPIOB
#define P8_Pin GPIO_PIN_15
#define P8_GPIO_Port GPIOB
#define P1_Pin GPIO_PIN_6
#define P1_GPIO_Port GPIOC
#define P47_46_Pin GPIO_PIN_3
#define P47_46_GPIO_Port GPIOB
#define P45_44_43_Pin GPIO_PIN_4
#define P45_44_43_GPIO_Port GPIOB
#define P42_Pin GPIO_PIN_5
#define P42_GPIO_Port GPIOB
#define P41_Pin GPIO_PIN_6
#define P41_GPIO_Port GPIOB
#define P39_Pin GPIO_PIN_7
#define P39_GPIO_Port GPIOB
#define P38_Pin GPIO_PIN_8
#define P38_GPIO_Port GPIOB
#define P18_Pin GPIO_PIN_9
#define P18_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
